package com.example.sanfang;

import android.app.Application;

import com.umeng.analytics.MobclickAgent;
import com.umeng.commonsdk.UMConfigure;
import com.umeng.socialize.PlatformConfig;

/**
 *
 */
public class MyApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
              initUm();
    }

    {
        PlatformConfig.setWeixin("wx0dc7c1fa36761c64", "568728c8d8869627c5ad52aea9dc2863");
        PlatformConfig.setSinaWeibo("3921700954", "04b48b094faeb16683c32669824ebdad", "http://sns.whalecloud.com");

    }
    private void initUm() {
        UMConfigure.init(this, "5fb8b20b690bda19c786a367", "Umeng", UMConfigure.DEVICE_TYPE_PHONE, "");
        MobclickAgent.setPageCollectionMode(MobclickAgent.PageMode.AUTO);

    }
}
